<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="{url('diacrisis/index')}">故障诊断</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('diacrisis/index')}" class="button">
            <i class="iconfont icon-xiangzuo1"></i> 返回
        </a>
    </div>
</div>
<div class="m10">
<form id="form" action="{url('diacrisis/edit')}">
<input type="hidden" name="id" value="{$id}"/> 
<table class="table table-border">
    <tr class="bg-f5">
      <th>IMEI号:</th>
      <td>{$info['imei']}</td>
      <th>购买时间:</th>
      <td>{if $info['shop_time']}{date('Y-m-d',$info['shop_time'])}{/if}</td>
    </tr>
    <tr class="bg-f5">
      <th>厂商:</th>
      <td>{$info['manufacturer_name']}</td>
      <th>机型:</th>
      <td>{$info['producttype_name']}</td>
    </tr>
    <tr class="bg-f5">
      <th>是否保内:</th>
      <td>{if $info['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
      <th>是否紧急:</th>
      <td>{if $info['is_urgent']}<span class="badge bg-red">加急</span>{else}<span class="badge">普通</span>{/if}</td>
    </tr>
    <tr class="bg-f5">
      <th>客户描述故障:</th>
      <td>{$info['fault_why']}</td>
      <th>是否重复维修:</th>
      <td class="is_repeat"></td>
    </tr>
    <tr>
      <th>检查实际故障:</th>
      <td colspan="3">
        <textarea datatype="*" class="textarea w500 h80"  type="text" name="failure_cause"></textarea>
      </td>
    </tr>
    <tr>
      <th>建议维修方式:</th>
      <td colspan="3">
        <input datatype="*" type="checkbox" name="service_mode[]" value="软件刷新" />软件刷新&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换机" />换机&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换主板" />换主板&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换TP" />换TP&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换电池" />换电池&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换摄像头" />换摄像头&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="换SPEAKER" />换SPEAKER&nbsp;&nbsp;
        <input type="checkbox" name="service_mode[]" value="其他" />其他
      </td>
    </tr> 
</table>
<div class="btn fn-tac">
    <input type="submit" value="确认诊断报告" class="button  button-yellow" />
</div>
</form>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
  $('#form').forms();
  $.post("{url('repair/diacrisis/is_repeat')}",{imei:"{$info['imei']}"},function(data){
      $('.is_repeat').html(data);
  },'html');
})
</script>